//标准输出输入
// process.stdin.pipe(process.stdout)

const http = require('http')

const server = http.createServer((req, res) => {
    if (req.method === 'POST') {
        req.pipe(res)
    }
    // res.end()
})
server.listen('3000', () => {
    console.log('server is running in 3000');
})